package com.example.captchademo2.demos.web.facade;

/**
 * @author Q
 * @create 2025-06-05-11:33
 */

/**
 * 门面
 */
public class FacadeClient {
    private LivingRoomLight livingRoomLight = new LivingRoomLight();
    private HallLight hallLight = new HallLight();
    private DiningLight diningLight = new DiningLight();
    public void allLightOn() {
        livingRoomLight.on();
        hallLight.on();
        diningLight.on();
    }
    public void allLightOff() {
        livingRoomLight.off();
        hallLight.off();
        diningLight.off();
    }
}
